import {Component} from '@angular/core';

@Component({
    selector: 'app-index',
    templateUrl: './index.component.html',
    styleUrls: ['./index.component.less']
})
export class IndexComponent {
    isCollapsed = false;
    visible = false;

    menus = [
        {
            level: 1,
            title: 'Mail Group',
            icon: 'mail',
            open: true,
            children: [
                {
                    level: 2,
                    title: 'welcome',
                    icon: 'bars',
                    url : 'statistic'
                },
                {
                    level: 2,
                    title: 'user-list',
                    icon: 'bars',
                    url : 'user-list'
                },
                {
                    level: 2,
                    title: 'webSocket',
                    icon: 'bars',
                    url : 'webSocket'
                }
            ]
        },
        {
            level: 1,
            title: 'Team Group',
            icon: 'team',
            children: [
                {
                    level: 2,
                    title: 'User 1',
                    icon: 'user',
                },
                {
                    level: 2,
                    title: 'User 2',
                    icon: 'user',
                }
            ]
        }
    ];
}
